package com.hangzhou.welbeing.welbeinginstrument.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.hangzhou.welbeing.welbeinginstrument.factory.AllCircleFragmentFactory;

/**
 * 时间 2017 年 09 月 09.
 * 作者 Administrator  刘传华
 * 公司 杭州惟君医疗科技有限公司
 * 包名 com.hangzhou.welbeing.pregnant.welbeing_pregnant.adapter
 * 工程名 welbeing_pregnant
 */
public class AllCircleFragmentPagerAdapter  extends FragmentPagerAdapter {
    private String tabTitles[] = new String[]{"热门","同城","同龄","孕期","情感","时尚","生活","其他"};
    @Override
    public CharSequence getPageTitle(int position) {
        return tabTitles[position];
    }

    public AllCircleFragmentPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return AllCircleFragmentFactory.CreateCircleObject(position);
    }

    @Override
    public int getCount() {
        return tabTitles.length;
    }
}
